package com.demo.bus_management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.bus_management.entity.BusLine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BusLineMapper extends BaseMapper<BusLine> {
   // List<BusLine> selectByname(String line_name);

   // List<BusLine> selectBynumber(String line_number);
    // 根据路线名称查询公交线路
    List<BusLine> selectByName(@Param("line_name") String lineName);

    // 根据公交车编号查询公交线路
    List<BusLine> selectByNumber(@Param("line_number") String lineNumber);

    //添加办法
    int insert(BusLine busLine);

}
